define(()=>{
    return function(cont, res){
        const deir = document.querySelector("#eightid");
        // console.log(res);
        let str = "";
        res.forEach(val=>{
            str += `<div class="eight-a" index="${val.id}><a href="http://localhost:3000/detalis.html?${val.id}"><img src="${val.img}"  class="eight-b" alt=""><span class="eight-c">${val.name}</span><p class="eight-d">￥${val.price}</p></a></div>`
        })
        // const cc = document.querySelectorAll("a")
        // console.log(a);
        // cont.deir(str);
        deir.innerHTML = str;
    }
    
})